<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>导入明细</title>
	</head>

	<body>
	
	
	 <div>
	   <a class="btn btn-primary" href="${ctx}/prioritySend/v2_query">返回查询页面</a>
	</div>
	
	
		
	<c:if test="${status eq '1' }">
	
	<!-- 同步结果 -->
	<table  class="table table-striped table-bordered table-condensed">
		<thead>
		<tr bgcolor="#3FA8F3" >
		   <th colspan="4"  style="height: 30px;font-size: 18px;color: white; vertical-align: middle;" >订单导入结果 </th>
		<tr>
		</thead>
		<tbody>
		   <tr>
			  <td>信息</td><td>${message}</td> 
			</tr>
			<tr>
			  <td>数量总量（条）</td><td>${number}</td> 
			</tr>
			<tr>
			  <td>成功数据（条）</td><td>${fn:length(normal)}</td>
			</tr>
			<tr>
			  <td>失败数据（条）</td><td>${fn:length(exception)}</td>
			</tr>
		</tbody>
	</table>
	
	
	<!-- 同步失败的 -->
	<table  class="table table-striped table-bordered table-condensed">
		<thead>
		<tr bgcolor="#3FA8F3" >
		   <th colspan="14"  style="height: 30px;font-size: 18px;color: white; vertical-align: middle;" >以下数据导入异常,请核对后重新同步</th>
		<tr>
		<tr>
		    <th>订单号</th>
			<th>快递单号</th>
			<th>寄件人姓名</th>
			<th>寄件人省份</th>
			<th>寄件人城市</th>
			<th>寄件人地址</th>
			<th>寄件人手机</th>
			<th>寄件人电话</th>
			<th>收件人姓名</th>
			<th>收件人省份</th>
			<th>收件人城市</th>
			<th>收件人地址</th>
			<th>收件人手机</th>
			<th>收件人电话</th>
		</tr>
		</thead>
		<tbody>
		    <c:if test="${empty exception or exception.size() eq 0}">
			     <tr><td colspan="14" height="50" style="vertical-align:middle; text-align: center;color: gray;font-size: 20px;">无数据</td></tr>
		   </c:if>
			<c:forEach items="${exception}" var="obj">
			<tr>
			   <tr>
						<td>${obj.ordeno}</td>
						<td>${obj.mailNo}</td>
						<td>${obj.sendna}</td>
						<td>${obj.sendProvna}</td>
						<td>${obj.sendCityna}</td>
						<td>${obj.sendAddres}</td>
						<td>${obj.sendMobile}</td>
						<td>${obj.sendTeleph}</td>
						<td>${obj.recena}</td>
						<td>${obj.provna}</td>
						<td>${obj.cityna}</td>
						<td>${obj.addres}</td>
						<td>${obj.mobile}</td>
					    <td>${obj.teleph}</td>
			</tr>
			</c:forEach>
		</tbody>
	</table>
	
	
	
	
	<table  class="table table-striped table-bordered table-condensed">
		<thead>
		<tr bgcolor="#3FA8F3" >
		   <th colspan="14"  style="height: 30px;font-size: 18px;color: white; vertical-align: middle;" >以下数据导入成功</th>
		<tr>
		<tr>
		    <th>订单号</th>
			<th>快递单号</th>
			<th>寄件人姓名</th>
			<th>寄件人省份</th>
			<th>寄件人城市</th>
			<th>寄件人地址</th>
			<th>寄件人手机</th>
			<th>寄件人电话</th>
			<th>收件人姓名</th>
			<th>收件人省份</th>
			<th>收件人城市</th>
			<th>收件人地址</th>
			<th>收件人手机</th>
			<th>收件人电话</th>
		</tr>
		</thead>
		<tbody>
		    <c:if test="${empty normal or normal.size() eq 0}">
			     <tr><td colspan="14" height="50" style="vertical-align:middle; text-align: center;color: gray;font-size: 20px;">无数据</td></tr>
		   </c:if>
			<c:forEach items="${normal}" var="obj">
			<tr>
			   <tr>
						<td>${obj.ordeno}</td>
						<td>${obj.mailNo}</td>
						<td>${obj.sendna}</td>
						<td>${obj.sendProvna}</td>
						<td>${obj.sendCityna}</td>
						<td>${obj.sendAddres}</td>
						<td>${obj.sendMobile}</td>
						<td>${obj.sendTeleph}</td>
						<td>${obj.recena}</td>
						<td>${obj.provna}</td>
						<td>${obj.cityna}</td>
						<td>${obj.addres}</td>
						<td>${obj.mobile}</td>
					    <td>${obj.teleph}</td>
			</tr>
			</c:forEach>
		</tbody>
	</table>

	</c:if>
	
	
	<c:if test="${status eq '2' }">
	
	<!-- 同步结果 -->
	<table  class="table table-striped table-bordered table-condensed">
		<thead>
		<tr bgcolor="#3FA8F3" >
		   <th colspan="14"  style="height: 30px;font-size: 18px;color: white; vertical-align: middle;" >商品导入结果 </th>
		<tr>
		</thead>
		<tbody>
		   <tr>
			  <td>信息</td><td>${message}</td> 
			</tr>
			
		</tbody>
	</table>
	

		
	
	</c:if>
	</body>
</html>
